package com.hjm.project.finance.record.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.finance.record.mapper.AgentDeductionsRecordMapper;
import com.hjm.project.finance.record.domain.AgentDeductionsRecord;
import com.hjm.project.finance.record.service.IAgentDeductionsRecordService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 账户变更记录Service业务层处理
 * 
 * @author maker-platform
 * @date 2022-10-28
 */
@Service
public class AgentDeductionsRecordServiceImpl implements IAgentDeductionsRecordService {
    @Resource
    private AgentDeductionsRecordMapper agentDeductionsRecordMapper;

    /**
     * 查询账户变更记录
     * 
     * @param id 账户变更记录ID
     * @return 账户变更记录
     */
    @Override
    public AgentDeductionsRecord selectAgentDeductionsRecordById(Integer id) {
        return agentDeductionsRecordMapper.selectAgentDeductionsRecordById(id);
    }

    /**
     * 查询账户变更记录列表
     * 
     * @param agentDeductionsRecord 账户变更记录
     * @return 账户变更记录
     */
    @Override
    public List<AgentDeductionsRecord> selectAgentDeductionsRecordList(AgentDeductionsRecord agentDeductionsRecord) {
        return agentDeductionsRecordMapper.selectAgentDeductionsRecordList(agentDeductionsRecord);
    }

    /**
     * 查询账户变更记录列表
     *
     * @param agentDeductionsRecord 账户变更记录
     * @return 账户变更记录 一个结果
     */
    @Override
    public AgentDeductionsRecord selectAgentDeductionsRecordOne(AgentDeductionsRecord agentDeductionsRecord) {
        return agentDeductionsRecordMapper.selectAgentDeductionsRecordOne(agentDeductionsRecord);
    }

    /**
     * 新增账户变更记录
     * 
     * @param agentDeductionsRecord 账户变更记录
     * @return 结果
     */
    @Override
    public int insertAgentDeductionsRecord(AgentDeductionsRecord agentDeductionsRecord) {
        return agentDeductionsRecordMapper.insertAgentDeductionsRecord(agentDeductionsRecord);
    }

    /**
     * 修改账户变更记录
     * 
     * @param agentDeductionsRecord 账户变更记录
     * @return 结果
     */
    @Override
    public int updateAgentDeductionsRecord(AgentDeductionsRecord agentDeductionsRecord) {
        return agentDeductionsRecordMapper.updateAgentDeductionsRecord(agentDeductionsRecord);
    }

    /**
     * 删除账户变更记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAgentDeductionsRecordByIds(String ids) {
        return agentDeductionsRecordMapper.deleteAgentDeductionsRecordByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除账户变更记录信息
     * 
     * @param id 账户变更记录ID
     * @return 结果
     */
    @Override
    public int deleteAgentDeductionsRecordById(Integer id) {
        return agentDeductionsRecordMapper.deleteAgentDeductionsRecordById(id);
    }
}
